<script setup lang="ts">
import Preson from "./components/Preson.vue";
import { reactive } from "vue";
import { type Persons } from "../src/types";

let personList = reactive<Persons>([
  {
    id: "diaidoma01",
    name: "卡莎",
    age: 18,
  },
  {
    id: "diaidoma02",
    name: "德莱文",
    age: 28,
  },
  {
    id: "diaidoma03",
    name: "锐雯",
    age: 38,
  },
]);
</script>

<template>
  <div>
    <Preson msg="Vite + Vue" :list="personList" a="hahaha" />
  </div>
</template>

<style scoped></style>
